package com.isprint.jslx.config;

import com.isprint.jslx.routes.RoutesProperties;
import com.isprint.jslx.sqlmapper.SqlMapperProperties;
import com.jfinal.config.*;
import com.jfinal.template.Engine;

/**
 * Created by ydw on 2017/7/14.
 */
public class CommonJfinalConfig extends JFinalConfig {
    public void configConstant(Constants constants) {
//        constants.setJsonFactory(new JacksonFactory());
    }

    public void configRoute(Routes routes) {
//      添加路由规则
        RoutesProperties.setROUTES(routes);
    }

    public void configEngine(Engine engine) {

    }

    public void configPlugin(Plugins plugins) {
//      sql映射
        SqlMapperProperties.sqlMapper(plugins);
    }

    public void configInterceptor(Interceptors interceptors) {

    }

    public void configHandler(Handlers handlers) {

    }
}
